package com.lyf.design.learn.designmodel.decorator;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/9
 * @VERSION 1.0
 * @DESC
 */
public class TailTankDecorator extends TankDecorator{
    // 可以定义为抽象类？指定传何种tail
    Tail tail=new Tail();
    // 传进来tank
    public TailTankDecorator(GameObject object) {
        super(object);
    }

    @Override
    void paint() {
        // 用tail修饰
        System.out.println("...");
        // 默认tail
        tail.paint();
        object.paint();
    }
    void paint(Tail tail){

    }


}
